//
//  CCTableViewSection.m
//  iOSCodeLearning
//
//  Created by TFAppleWork-Summer on 2018/4/18.
//  Copyright © 2018年 Ace. All rights reserved.
//

#import "CCTableViewSection.h"

@implementation CCTableViewSection

+(instancetype)section{
    return [[self alloc] init];
}

-(void)addItem:(__kindof CCTableViewItem *)item{
    [self.items addObject:item];
}


-(NSMutableArray*)items{
    if (!_items) {
        _items = [[NSMutableArray alloc] init];
    }
    return _items;
}

@end
